package com.simon.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.simon.system.model.Dept;
import org.springframework.stereotype.Repository;

@Repository
public interface DeptMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Dept record);

    int insertSelective(Dept record);

    Dept selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Dept record);

    int updateByPrimaryKey(Dept record);
    
    List<Dept> queryDepts(@Param("name") String name);
	
	List<Dept> selectByPid(Integer pid);
	
	List<Dept> selectDepts();
	
	Dept findByName(String name);
}